import cust from './modules/customer'
import CustomerVip from './modules/CustomerVip'
import dic from './modules/dictionary'
import home from './modules/home'
import org from './modules/org'
import pro from './modules/products'

const routes: any[] = [
    {
        path: "/",
        // component: () => import('@/views/home/index.vue')
        component: () => import('@/views/layout.vue'),
        meta: {
            title: '首页'
        },
        children: [
            dic,
            org,
            pro,
            cust,
            CustomerVip,
            home
        ]
    },
    {
        path: "/login",
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            not_check: true
        }
    }
]

export default routes
